package com.xinqi.modules.chat.favorite.convert;

import com.xinqi.modules.chat.favorite.dto.rsp.FavoriteContentResultDTO;
import com.xinqi.modules.chat.favorite.dto.req.FavoriteContentCreateDTO;
import com.xinqi.modules.chat.favorite.domain.FavoriteContentEntity;
import com.xinqi.common.mapstruct.CommonConvertConfig;
import org.mapstruct.Mapper;

/**
 * 收藏内容表转换
 *
 * @author: yyzhen
 * @date: 2023/03/23
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class FavoriteContentConvert {

    public abstract FavoriteContentEntity create(FavoriteContentCreateDTO s);

    public abstract FavoriteContentResultDTO convert(FavoriteContentEntity s);
}
